Inferência de tipos com suporte para sobrecarga baseada no sistema CT
نویسنده
چکیده
This work discusses the problem of type inference in the presence of overloading, making a revision of type system CT . This system is an extension of the wellknown Damas-Milner system with support for overloading, where constraints are used in polymorphic types to indicate restrictions on the instantiation of these types, with respect to type assumptions of overloaded symbols that are available in the relevant typing context. Type inference in this system involves a solution to the problem of constraint-set satisfiability in a given typing context, that is, the problem of deciding whether a given set of constraints in a polymorphic type is considered valid (is satisfied) or not, in a given typing context. Over-restrictive overloading policies have been adopted in order to guarantee the decidibility of this problem. System CT adopts an overloading policy that is much less restrictive than those of similar type systems. The main contribuitions of this work are the following: a formal definition of the problem of constraint-set satisfiability that is independent of (the rules used in) a type system, the definition of an algorithm for solving this problem and the implementation of a prototype of this algorithm that indicates that the adoption of a less restrictive overloading policy can work well in practice. In tests with this prototype, no situation was detected where the satisfiability could not be decided. In this cases a user configurable iteration limit is used in order to stop the process and reject the expression, indicating a type error.
منابع مشابه
ROSA+: Um Repositório de Objetos de Aprendizagem com Suporte a Inferência e Regras
ROSA is a Learning Object (LO) repository system with semantic access, which enables the management of LOs. LO is a collection of reusable material used to support learning, characterized by a set of metadata descriptors. LOs are accessed in a contextualized way, determined by semantic associations between them. This paper presents ROSA+, a system extension that aims at deducing additional sema...
متن کاملA Highly Effective System Clock for Energy-efficient Computer Systems
Energy-efficient computer systems are making increasing use of processors that have multiple core units, DVFS, and virtualization support. However, current system clocks have not been usually designed to cope with the capacity of such mechanisms to decelerate/accelerate the passage of time, which increases the time drifts in the system and produces two adverse side effects. First, a reduction i...
متن کاملClassificação de Prioridade de Tweets utilizando Máquinas de Vetor de Suporte (Tweet Priority Classification Using Support Vector Machines) [in Portuguese]
Resumo. Este artigo provê resultados iniciais sobre a tarefa de classificação automática de prioridade de tweets, como forma de amenizar a sobrecarga de informação sofrida por usuários do Twitter. Para tanto, aplicamos Máquinas de Vetor de Suporte a um extenso conjunto de exemplos contendo tweets manualmente classificados por nove usuários. Mostramos resultados promissores mesmo com a quantidad...
متن کاملExpressando Atributos Não-Funcionais em Workflows Científicos
In this paper we present OSC, a scientific workflow specification language based on software architecture principles. In contrast with other approaches, OSC employs connectors as first-class constructs. In this way, we leverage reusability and compositionality in the workflow modeling process, specially in the configuration of mechanisms that manage non-functional attributes. Resumo. Este artig...
متن کاملA Component Based Infrastructure to Develop Software Supporting Dynamic Unanticipated Evolution
This paper presents a component based infrastructure for developing software supporting dynamic unanticipated software evolution. We propose a component model providing mechanisms for managing unpredicted software changes, even at runtime. A Java implementation of the proposed model is also presented. Moreover, a performance evaluation model and an Eclipse-based tool to support composition acti...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2004